﻿#include "dmpch.h"
#include "DM/ImGui/ImGuiRendererAPI.h"

#include "DM/Renderer/Renderer.h"
#include "DM/Platform/OpenGL/ImGuiOpenGLRenderer.h"
namespace DM
{
	Scope<ImGuiRendererAPI> ImGuiRendererAPI::Create()
	{
		switch (Renderer::GetAPI())
		{
		case RendererAPI::API::None:DM_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;;
		case RendererAPI::API::OpenGL:  return CreateScope<ImGuiOpenGLRenderer>();
		}
		DM_CORE_ASSERT(false, "unknown renderer api!");
		return nullptr;
	}
}
